-- CALC_AVALON_CANNON_ATTACK

-- 计算阿瓦隆巨炮的威力
-- @param avalonCannon    阿瓦隆巨炮
return function(avalonCannon)
    -- 初始威力
    local attack = AvalonCannonM.query(avalonCannon.classId, "init_attack");

    -- 威力加成
    local prop = PropM.combine(avalonCannon, "attrib2", "attack");
    attack = PropM.apply(prop, attack);

    local attackAddon = avalonCannon.dbase:query("attack_addon", 0);
    attack = attack + attackAddon;

    -- 玩家对阿瓦隆巨炮属性加成
    prop = PropM.combine(ME.user, "avalon_addon", "attack");
    attack = PropM.apply(prop, attack);

    return attack;
end
